<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>安全监测</title>
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <style>
        body,html{
            width: 100%;
            height: 100%;
        }
        .outBox{
            width: 100%;
            height: 100%;
            display: flex;
            /* background-image: url(../images/bg2.jpg);
            background-size: cover; */
        }
        .leftBox{
            width: 80%;
            height: 100%;
        }
        .chart{
            margin: 20px;
            width: calc(100% - 40px);
            height: calc(100% - 40px);
            border: 1px solid #1e9fff;
            border-radius: 20px;
            box-shadow: -10px 0px 10px #1e9fff inset,   /*左边阴影*/
                        0px -10px 10px #1e9fff inset,  /*上边阴影*/
                        10px 0px 10px #1e9fff inset,  /*右边阴影*/
                        0px 10px 10px #1e9fff inset;
            background: rgba(30,159,255, 0.1);
        }
        .rightBox{
            width: calc(20% - 20px);
            height: 100%;
        }
        .displayContent{
            height: 200px;
            border: 1px solid #1e9fff;
            box-shadow: -10px 0px 10px #1e9fff inset,   /*左边阴影*/
                        0px -10px 10px #1e9fff inset,  /*上边阴影*/
                        10px 0px 10px #1e9fff inset,  /*右边阴影*/
                        0px 10px 10px #1e9fff inset;
            background: rgba(30,159,255, 0.1);
            border-radius: 20px;
            padding: 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin-top: 20px;
        }
        .singleDisplay{
            width: 100%;
            display: flex;
        }
        .fontCenter{
            text-align: center;
        }
        .labelTitle{
            font-size: 20px;
            font-weight: bold;
        }
        .num{
            font-size: 20px;
            color: orange;
        }
        .cross{
            margin: 20px auto;
            height: 80px;
            width: 400px;
            border: 3px solid #333;
            background: #eee;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }
        .cross1{
            margin-bottom: 0;
        }
        .cross2{
            margin-top: 0;
        }
        .vertical{
            width: 80px;
            margin: 0 auto;
            height: calc(100% - 218px);
            border: 3px solid #333;
            background: #eee;
            transform: translate(-160px,0);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .circle{
            width: 20px;      
            height: 20px;      
            margin-right: 20px;
            background-color:red;      
            border-radius: 50%;      
            -moz-border-radius: 50%;      
            -webkit-border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="outBox">
        <div class="leftBox">
            <div class="chart">
                <div class="cross cross1">
                    <div class="circle" id="in"></div>
                </div>
                <div class="vertical">
                    <div class="circle" id="face"></div>
                </div>
                <div class="cross cross2">
                    <div class="circle" id="out"></div>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
     layui.use(['laydate', 'table'], function () {
        var $ = layui.jquery,
        layer = layui.layer;
        $("#out").hover(function() {
            openMsg('out');
        }, function() {
            layer.close(subtips);
        });
        $("#in").hover(function() {
            openMsg('in');
        }, function() {
            layer.close(subtips);
        });
        $("#face").hover(function() {
            openMsg('face');
        }, function() {
            layer.close(subtips);
        });
        function openMsg(flag) {
            let idValue = "out";
            let tipValue = "出风口";
            if(flag == 'in'){
                idValue = "in";
                tipValue = "进风口";
            }else if(flag == 'face'){
                idValue = "face";
                tipValue = "工作面";
            }
            let tip = `${tipValue}情况<br/>风速：80<br/>温度：80<br/>瓦斯浓度：80<br/>粉尘浓度：80`
            subtips = layer.tips(tip, '#'+idValue,{tips:[1],time: 30000});
        }
    })
</script>
</html>